

import request from '@/utils/request'

export function listDevice(query) {
  return request({
    url: '/system/device/list',
    method: 'get',
    params: query
  })
}
export function allList(query) {
  return request({
    url: '/system/device/allList',
    method: 'get',
    params: query
  })
}
export function delDevice(compFeeIds) {
  return request({
    url: '/system/device/' + compFeeIds,
    method: 'delete'
  })
}

export function listSelect(query) {
  return request({
    url: '/system/device/listSelect',
    method: 'get',
    params: query
  })
}
export function listSelect1(query) {
  return request({
    url: '/system/device/listSelect1',
    method: 'get',
    params: query
  })
}
export function deviceList(query) {
  return request({
    url: '/system/device/deviceList',
    method: 'get',
    params: query
  })
}
export function listSelectChey(query) {
  return request({
    url: '/system/deviceCheckAsk/listSelect',
    method: 'get',
    params: query
  })
}

export function deviceAdd(data) {
  return request({
    url: '/system/device',
    method: 'post',
    data: data
  })
}
export function updategdevice(data) {
  return request({
    url: '/system/device',
    method: 'put',
    data: data
  })
}
export function updateByBodevice(data) {
  return request({
    url: '/system/device/updateByBo',
    method: 'put',
    data: data
  })
}
export function deviceInfo(query) {
  return request({
    url: '/system/device/' + query,
    method: 'get',
  })
}
// 设备管理员审核通过
export function deviceAudit(params) {
  return request({
    url: '/system/device',
    method: 'get',
    params: params
  })
}

